<?php

namespace App\Exports;

use App\Models\Log;
use App\Models\Record;
use Maatwebsite\Excel\Concerns\Exportable;
use Maatwebsite\Excel\Concerns\FromCollection;
use Maatwebsite\Excel\Concerns\WithHeadings;

class LogsExport implements FromCollection,WithHeadings
{
    public function collection()
    {
       return Log::all();
    }

    public function headings(): array
    {
        // TODO: Implement headings() method.
        return [
            'ID',
            '类型',
            '内容',
            '用户ID',
            '创建时间',
            '更新时间',
            '员工姓名',
            '员工手机号',
        ];
    }
}
